package ca.eloas.gpsclock.db;

/**
 * @author JP
 */
public class TimeAlarmInfo {
    
    private int hours;
    private int minutes;
    private long _id;
    private boolean active;

    public TimeAlarmInfo(long id, int hours, int minutes) {
        this._id = id;
        this.hours = hours;
        this.minutes = minutes;
    }

    public TimeAlarmInfo(int hours, int minutes) {
        this.hours = hours;
        this.minutes = minutes;
    }

    public int getHours() {
        return hours;
    }

    public void setHours(int hours) {
        this.hours = hours;
    }

    public int getMinutes() {
        return minutes;
    }

    public void setMinutes(int minutes) {
        this.minutes = minutes;
    }

    public boolean isSaved() {

        return _id != 0;
    }

    public long getId() {
        return _id;
    }

    public String asString() {

        return String.format("%02d:%02d", hours, minutes);
    }

    public void setActive(boolean active) {

        this.active = active;
    }

    public boolean getActive() {
        return active;
    }
}
